<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title> Accueil </title>
		<link rel="stylesheet" type="text/css"  media="screen" href="topic.css"/>
	</head>	

	<body>

		<?php  
			if($_SESSION['log'] == 1){
				include_once("header_connecter.html");
				}else{
				include_once("header_deconnecter.html");
			} 
		?>
		<br/>
		<br/>
		<br/>
		<table align="center" class='boite5' border="1">
			
			<tr>
				<td>  </td>
				<td> Pays </td>
				<td> Adresse </td>
				<td> Ville </td>
				<td> Code postal </td>
				<td> Tarif par jour </td>
				<td> Tarif par semaine </td>
				<td> Surface </td>
				<td> Description </td>
				<td> Modifier </td>
			</tr>
			
			<?php
		while ($data = mysqli_fetch_array($query) ){
		
			 echo "<tr><td><img src=".$Photo['photo']."></td><td>" .$Pays['pays']."</td><td>".$data['adresse']."</td><td>".$Ville['ville']."</td><td>.".$data['codepostal']."</td><td>".$data['tarif_jour']."</td>
			<td>".$data['tarif_semaine']."</td><td>".$data['surface']."</td><td>".$data['description']."</td><td><a href='modifier_bien.php?id=".$data['id']."'>Modifier</a></td></tr>";
		}
		?>
		
		</table>
	</body>
</html>